package com.gx.model.dto.task;

import com.gx.model.dto.common.BaseDto;
import com.gx.model.dto.definition.FlowCommentDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * <p>流程任务<p>
 *
 * @author XuanXuan
 * @date 2021-04-03
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("工作流任务相关--请求参数")
public class FlowTaskCompleteDto extends BaseDto {

    @ApiModelProperty(value = "任务Id", required = true)
    @NotBlank(message = "任务id不可为空")
    private String taskId;

    @ApiModelProperty("任务意见")
    @NotNull(message = "意见不能全空")
    private FlowCommentDto comment;

    @ApiModelProperty(value = "流程实例Id", hidden = true)
    private String instanceId;

    @ApiModelProperty("流程变量信息")
    private Map<String, Object> processVariables;

}
